package ogloszenia.nawigacja;

import java.io.Serializable;

public class popuppanel implements Serializable{

	private String 
		header = "", tresc = "";
	private boolean widocznosc;
	public static boolean v;

	public void ustaw(String ... wartosci){
		setHeader(wartosci[0]);
		setTresc(wartosci[1]);
		v=true;
		setWidocznosc(true);
	}
	public void setWidocznosc(boolean aa) {
		System.out.println("w setwidocznosc");
		v=widocznosc = aa;
		/*System.out.println("w setwidocznosc"+widocznosc+" "+aa);
		System.out.println("w setwidocznosc"+widocznosc+" "+aa+" "+v);*/
		widocznosc = aa;
	}
	
	public boolean isWidocznosc() {
		System.out.println("w iswidocznosc"+widocznosc+" "+v);
		 
		widocznosc=v;
		System.out.println("w iswidocznosc"+widocznosc+" "+v);
		/* 
		System.out.println("w iswidocznosc"+widocznosc+" "+v);*/
		return widocznosc;
	}
	public static popuppanel instancja=new popuppanel();
	
	public static popuppanel popuppanel(){
		if (instancja==null)
			instancja=new popuppanel();
		return instancja;
	}

	public String getHeader() {
		return header;
	}

	public void setHeader(String header) {
		this.header = header;
	}

	public String getTresc() {
		return tresc;
	}

	public void setTresc(String tresc) {
		this.tresc = tresc;
	}

}
